package com.idc.common.constant;

public enum ErrorCode {

    SMSCODE_FLOW_LIMIT(10000,"已发送验证码，请稍后再试"),
	EMPTY_PARAM(10001, "参数不能为空"),
	ERROR_PARAM(10002, "参数错误"),
	ERROR_USER(10003, "用户不存在"),
	
    LOGIN_SMSCODE_ERROR(20001,"验证码错误"),
    LOGIN_SMSCODE_TIMEOUT(20002,"验证码已失效"),
    LOGIN_CODE_ERROR(20003,"CODE错误"),
	LOGIN_CODE_TIMEOUT(20004, "CODE已失效"),
	;

	public static final int SMSCODE_FLOW_LIMIT_CODE = 10000;
	public static final String SMSCODE_FLOW_LIMIT_DESC = "已发送验证码，请稍后再试";

	private int code;
	private String message;

	private ErrorCode(int code, String message) {
		this.code = code;
		this.message = message;
	}

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
